<?php
namespace Admin\Controller;
use Think\Controller;

class GoodsController extends Controller{

    //商品列表展示
    public function showlist(){

        $goods = M('goods');
        $info = $goods->where("goods_price>1000")->select();
       // $info = $goods->field("goods_id,goods_name")->select();
        $info = $goods->limit(5)->select();
        $this->assign("info",$info);
        $this->display();
    }

    //商品添加
    public function add(){

        $this->display();
    }

    //商品更改
    public function upd(){
        $this->display();
    }
}
